//
//  FSBaseVC.h
//  MWB2C
//
//  Created by CoolCamel on 2017/11/20.
//  Copyright © 2017年 www.meiweigx.com. All rights reserved.
//

#import <UIKit/UIKit.h>

UIKIT_EXTERN NSString *const kBiz_HideKeyboard;

@interface FSBaseVC : UIViewController

@property (nonatomic, assign) BOOL isEnableCustomTransition;        //是否允许自定义的滑动手势
@property (nonatomic, strong) UIColor *customBackgroundColor UI_APPEARANCE_SELECTOR;

@property CGFloat m_yOffset;
 
//显示/隐藏导航条阴影线条
-(void)showNavigationBarShadowImage;
-(void)hiddenNavigationBarShadowImage;
 
//进入/退出页面
- (void) pushAndHiddenBottomBarToVC:(UIViewController *)vc;
- (void) popViewController;
- (void) popViewRootViewController;

//显示/隐藏导航栏
-(void)showNavigationBarHidden:(BOOL)hidden;

//设置导航栏项目
- (void)setTitleViewWithView:(UIView *)view;
- (void)setTitleWithTitle:(NSString *)title;
- (void)setTitleWithTitle:(NSString *)title Color:(UIColor *)color;
- (void)setLeftBarButtonItemsWithButtonItems:(NSArray<UIBarButtonItem *> *)buttonItems;
- (void)setRightBarButtonItemsWithButtonItems:(NSArray<UIBarButtonItem *> *)buttonItems;

//左边按钮
- (void)setLeftBarButtonItemWithImage:(UIImage *)image Action:(SEL)action;
- (void)setLeftImageMessage:(UIImage *)image Title:(NSString *)title Action:(SEL)action;
- (void)setLeftBarButtonItemWithTitle:(NSString *)title Attributes:(NSDictionary *)attributes Action:(SEL)action;
- (void)setLeftImage:(UIImage *)image Title:(NSString *)title Action:(SEL)action;

//右边按钮
- (void)setRightBarButtonItemWithImage:(UIImage *)image Action:(SEL)action;
- (void)setRightBarButtonItemWithTitle:(NSString *)title Action:(SEL)action;
- (void)setRightBarButtonItemWithTitle:(NSString *)title Attributes:(NSDictionary *)attributes Action:(SEL)action;

//不同的返回按钮
- (void)setBackButton;
- (void)setBackBaiButton;

//隐藏返回按钮
- (void)hideBackButton;


/*    导航栏下面线   */
- (void)settranslucentNO;
- (void)settranslucentYES;

- (void)hideTitle;
- (void)hideLeftBarButtonItem;
- (void)hideRightBarButtonItem;

//修改导航栏背景色
- (void)setNavigationBarBackgroundColorWithColor:(UIColor *)color;

//白色背景
- (void)setNavigationBarBackgroundColor;

- (void)setNavigationBarBackgroundColorWhite:(NSString *)titleName;

@end

